<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript" src="resources/js/jquery-1.11.3.min.js"></script>
		<script type="text/javascript" src="resources/js/jquery-heima-0.0.1.js"></script>
		<script>
			function req(){
				// $.ajax({
				// 	type:"get",
				// 	url:"http://www.xyshopping.com:8080/test",
				// 	data:"username=xiaoming",
				// 	success:function(){
				// 		alert("1");
				// 	},
				// 	xhrFields:{
				// 		//允许服务器端发送Cookie并保存在客户端，并且允许客户端回带Cookie
				// 		withCredentials:true
				// 	}
				// });
				HM.ajax("/test","username=xiaoming",function(data){
					alert(data);
				});
			}
		</script>
	</head>
	<body>
		<div>
			<input type="button" value="点我试一试后端行不行 " onclick="req()" />
		</div>
	</body>
</html>